#include "Sel.h"

//lima sekawan
Sel::Sel(){
	Point P(0,0);
	location = P;
	content = defaultcontent;
}

Sel::Sel(Point& x){
	location = x;
	content = defaultcontent;
}

Sel::Sel(Point& x, char y){
	location = x;
	content = y;
}

Sel::Sel(const Sel& x){
	location = x.location;
	content = x.content;
}

Sel::~Sel(){
	Point P(0,0);
	location = P;
	content = defaultcontent;
}

Sel& Sel::operator= (const Sel& z){
        location = z.location;
        content = z.content;
		return *this;
}

ostream& operator<< (ostream& stream, const Sel& sel){
	stream << sel.location << " cont:("<< sel.content << ")";
}

//setter getter
void Sel::setLocation (Point x){
        location = x;
}
void Sel::setContent (char y){
        content = y;
}

Point Sel::getLocation() const{
        return location;
}

char Sel::getContent() const{
        return content;
}

